package com.jiyun.racelist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.model.Team;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeamMapper extends BaseMapper<Team> {

    @Select("select paiming,tname,score from team order by score desc")
    List<Team> LookPaiming();

    @Select("select paiming from team where id=#{value}")
    Integer Paiming(Integer id);

    @Select("select score from team where id=#{value}")
    Integer LookScore(Integer id);
}
